package com.zhdl.hardware_contact.hardware_config.repository;

import com.project.common.repository.BaseRepository;
import com.zhdl.hardware_contact.hardware_config.entity.ProjectConfiguration;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ProjectConfigDao extends BaseRepository<ProjectConfiguration, Integer> {

    @Query("SELECT pc FROM ProjectConfiguration pc WHERE pc.workplaceId = :workplaceId")
    public List<ProjectConfiguration> getProjectConfigurationByworkplaceId(Integer workplaceId);

    @Query("SELECT pc FROM ProjectConfiguration pc WHERE pc.valueType = :valueType")
    public List<ProjectConfiguration> getProjectConfigurationByValueType(Integer valueType);

}
